package com.star.sso.repository.model;

import com.star.common.core.context.BaseContext;
import com.star.common.core.contract.BaseRepository;
import com.star.common.core.contract.Model;
import com.star.sso.repository.service.SysSystemRepository;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDateTime;

/**
 * 系统表(SysSystem)领域类
 *
 * @author zhouhengzhe
 * @since 2024-01-08 23:53:42
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@EqualsAndHashCode(callSuper = true)
public class SysSystemBO extends Model {

    @Schema(description = "系统自增ID")
    private String id;
    @Schema(description = "创建时间")
    private LocalDateTime createTime;
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;
    @Schema(description = "创建人编码")
    private String createBy;
    @Schema(description = "创建人")
    private String creator;
    @Schema(description = "更新人编码")
    private String updateBy;
    @Schema(description = "更新人")
    private String updater;
    @Schema(description = "系统名称")
    private String name;
    @Schema(description = "系统编号")
    private String code;
    /**
     * @see com.star.common.core.contract.enums.StatusEnum
     */
    @Schema(description = "0-禁止 1-正常")
    private String status;

    public static SysSystemRepository repository() {
        return BaseRepository.of(SysSystemBO.class);
    }
}
